package top.huhuiyu.springboot3.aop;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
public @interface BucketLimit {

    BucketLimitMode mode() default BucketLimitMode.IP;

    String key() default "";

    int timeout() default 60;

    int capacity() default 10;

    String message() default "访问过于频繁，请稍候再试";
}
